home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3collum.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.5 KB  |  97 lines

  1.  
  2. // JavaScript wrapper for r3collum.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_LUMINOSITYGADGET_H = 1;
  7. include("oops/r3gadget.js")
  8.  
  9.  
  10. var R3CLID_LUMINOSITYGADGET = 606;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Ask the gadget to render itself when it has no better things to do.
  16. //      Note that this simply asks the gadget to render itself. The actual rendering is done
  17. //      in RENDEROPTIMIZED method. No need to touch this, unless you are going to change the
  18. //      look of the gadget.
  19.  
  20. R3LUMGM_RENDER = 606000;
  21.  
  22. function mR3LUMGM_RENDER() {
  23.   DoA(this.r3obj, 606000, 0, R3TID_INTEGER, 0);
  24. }
  25.  
  26. // Description: Renders the luminosity gradient and the current pen position.
  27.  
  28. R3LUMGM_RENDEROPTIMIZED = 606001;
  29.  
  30. function mR3LUMGM_RENDEROPTIMIZED() {
  31.   DoA(this.r3obj, 606001, 0, R3TID_INTEGER, 0);
  32. }
  33.  
  34. // Description: The gadget owns window for rendering the gradient. Window events, are mapped to the
  35. //      gadget using this method.
  36. // p3: window event.    
  37.  
  38. R3LUMGM_WINDOWEVENT = 606002;
  39.  
  40. function mR3LUMGM_WINDOWEVENT(p3) {
  41.   DoA(this.r3obj, 606002, p3, R3TID_INTEGER, 0);
  42. }
  43.  
  44.  
  45.  
  46.  
  47. R3LUMGA_Luminosity = 606500;
  48. function SetR3LUMGA_Luminosity(value) {
  49.   R3Set(this.r3obj, R3LUMGA_Luminosity, value, R3TID_FLOAT, 0); 
  50. }
  51.  
  52. function GetR3LUMGA_Luminosity() {
  53.   return R3Get(this.r3obj, R3LUMGA_Luminosity, R3TID_FLOAT, 0); 
  54. }
  55.  
  56. R3LUMGA_ColorRGBA = 606501;
  57. function SetR3LUMGA_ColorRGBA(value) {
  58.   R3Set(this.r3obj, R3LUMGA_ColorRGBA, value, R3TID_COLOR_RGBA, 0); 
  59. }
  60.  
  61. function GetR3LUMGA_ColorRGBA() {
  62.   return R3Get(this.r3obj, R3LUMGA_ColorRGBA, R3TID_COLOR_RGBA, 0); 
  63. }
  64.  
  65. R3LUMGA_Window = 606502;
  66. function GetR3LUMGA_Window() {
  67.   return R3ToJS(R3Get(this.r3obj, R3LUMGA_Window, R3TID_OBJECT, 0)); 
  68. }
  69.  
  70. R3LUMGA_Packer = 606503;
  71. function GetR3LUMGA_Packer() {
  72.   return R3ToJS(R3Get(this.r3obj, R3LUMGA_Packer, R3TID_OBJECT, 0)); 
  73. }
  74.  
  75.  
  76.  
  77. function r3Luminositygadget () { 
  78.    this.base = r3God;
  79.    if(arguments.length) {
  80.       this.base(R3CLID_LUMINOSITYGADGET, arguments);
  81.    }
  82.    // Methods
  83.    this.RENDER=mR3LUMGM_RENDER;
  84.    this.RENDEROPTIMIZED=mR3LUMGM_RENDEROPTIMIZED;
  85.    this.WINDOWEVENT=mR3LUMGM_WINDOWEVENT;
  86.  
  87.    // Attributes
  88.    this.GetLuminosity=GetR3LUMGA_Luminosity;
  89.    this.SetLuminosity=SetR3LUMGA_Luminosity;
  90.    this.GetColorRGBA=GetR3LUMGA_ColorRGBA;
  91.    this.SetColorRGBA=SetR3LUMGA_ColorRGBA;
  92.    this.GetWindow=GetR3LUMGA_Window;
  93.    this.GetPacker=GetR3LUMGA_Packer;
  94. }
  95.  
  96. r3Luminositygadget.prototype=new r3Gadget;
  97. // r3collum.h_H